package com.asen.commons.core.meta.enums;

import com.asen.commons.core.base.IntegerEnum;

/**
 * 排序枚举
 *
 * @author ls
 * @version 1.0
 * @date 2024-04-09
 */
public enum OrderSymbolEnum implements IntegerEnum {

    /**
     * 排序
     */
    ASC(1, " ASC"),

    DESC(2, " DESC");

    private Integer key;

    private String val;

    private OrderSymbolEnum(Integer key, String val) {
        this.key = key;
        this.val = val;
    }

    @Override
    public Integer getValue() {
        return key;
    }

    @Override
    public String getDesc() {
        return val;
    }

}
